<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;

class VersionsController extends Controller
{
	public function index()
	{
		return response()->json([
			'mini_appid' => cs('app')->mini_appid,
			'mini_pay_mark' => cs('app')->mini_pay_mark,
			'version' => cs('app')->version,
			'version_ios' => cs('app')->version_ios,
			'android_download_url' => cs('app')->android_url ?? '',
			'ios_download_url' => cs('app')->ios_url ?? '',
			'search_list' => ['芒果','锋味派','吐司','榴莲','海蓝之谜精萃水'],
		]);
	}
	
	public function ios()
	{
		return response()->json([
			'mini_appid' => cs('app')->mini_appid,
			'mini_pay_mark' => cs('app')->mini_pay_mark,
			'is_ios_on' => cs('app')->is_ios_on,
			'pending_android_version' => cs('app')->pending_android_version,
			'pending_ios_version' => cs('app')->pending_ios_version,
			'version_ios' => cs('app')->version_ios,
		]);
	}
}
